import request from '../utils/request'

export function get(url, params) {
  return request({
    url,
    method: 'get',
    params
  })
}

export function post(url, data) {
  return request({
    url,
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
